package com.turbofan.service.provider.controller;

import org.springframework.web.bind.annotation.RestController;

import com.turbofan.service.api.User;
import com.turbofan.service.api.UserApi;

@RestController
public class UserController implements UserApi{

    public User query(String username,String password) {
         System.out.println("query,username:" + username + ",password:" + password);
         User user = new User(username, password);
         return user;
    }

    @Override
    public String create(User user) {
        System.out.println("create,username:" + user.getUsername() + ",password:" + user.getPassword());
        return "succes";
        
    }
    
    
}
